/*
 * @Autor: 黄旗
 * @Date: 2020-06-12 08:32:30
 */
import request from '@/plugins/request';
import dayjs from 'dayjs';
// 搜索城市列表
export function patientindexsearchcity(data) {
    return request({
        url: '/v1/patient/index/search-city',
        method: 'get',
        params: data
    });
}
// 获取下拉信息
export function networkselectinfo(data) {
    return request({
        url: '/v1/patient/network/select-info',
        method: 'get',
        params: data
    });
}

// 获取渠道
export function networkchannel(data) {
    return request({
        url: '/v1/patient/network/channel',
        method: 'get',
        params: data
    });
}

// 获取列表信息
export function networklist(data) {
    let datas = { ...data };
    if(data.speak_start) {
        datas.speak_start = dayjs(data.speak_start).format('YYYY-MM-DD');
    }
    if(data.speak_end) {
        datas.speak_end = dayjs(data.speak_end).format('YYYY-MM-DD');
    }
    return request({
        url: '/v1/patient/network/list',
        method: 'get',
        params: datas
    });
}

// 更新信息
export function networkupdate(data) {
    return request({
        url: '/v1/patient/network/update',
        method: 'post',
        data
    });
}
// 网络同步词性
export function updatepatientCixing(data) {
    return request({
        url: '/v1/search/cixing/update-patient-cixing',
        method: 'post',
        data
    });
}
// 导医编辑
export function patientindexeditguideuser(data) {
    return request({
        url: '/v1/patient/index/edit-guide-user',
        method: 'post',
        data
    });
}
// 导医患者下拉
export function guidecreateCondition(data) {
    return request({
        url: '/v1/patient/index/guide-create-condition',
        method: 'get',
        params: data
    });
}
// 微信线索,转客户/失效/未联系等等
export function concatWxPatient(data) {
    return request({
        url: '/v1/clue/wechat-user/contact',
        method: 'post',
        data
    });
}
// 导出
export function networkexport(data) {
    let datas = data;
    if(data.speak_start) {
        datas.speak_start = dayjs(data.speak_start).format('YYYY-MM-DD');
        datas.speak_end = dayjs(data.speak_end).format('YYYY-MM-DD');
    }
    return request({
        url: '/v1/patient/network/export',
        method: 'get',
        params: datas
    });
}

// 项目到诊排行
export function leaderboardprojectvisit(data) {
    return request({
        url: '/v1/work/leaderboard/project-visit',
        method: 'get',
        params: data
    });
}
// 项目到诊排行
export function getOldPatient(data) {
    return request({
        url: '/v1/clue/wechat-user/search-patient',
        method: 'get',
        params: data
    });
}
// 集团到诊排行
export function leaderboardgroupvisit(data) {
    return request({
        url: '/v1/work/leaderboard/group-visit',
        method: 'get',
        params: data
    });
}

// 项目完成度排行
export function leaderboardprojectcomplete(data) {
    return request({
        url: '/v1/work/leaderboard/project-complete',
        method: 'get',
        params: data
    });
}

// 我的待办
export function todotodolist(data) {
    return request({
        url: '/v1/work/todo/to-do-list',
        method: 'get',
        params: data
    });
}

// 获取线索录入列表
export function clueuserentrylist(data) {
    let datas = data;
    if(data.start_date) {
        datas.start_date = dayjs(data.start_date).format('YYYY-MM-DD');
        datas.end_date = dayjs(data.end_date).format('YYYY-MM-DD');
    }
    return request({
        url: '/v1/clue/user/entry-list',
        method: 'get',
        params: datas
    });
}
export function clueuserexport(data) {
    let datas = data;
    if(data.start_date) {
        datas.start_date = dayjs(data.start_date).format('YYYY-MM-DD');
        datas.end_date = dayjs(data.end_date).format('YYYY-MM-DD');
    }
    return request({
        url: '/v1/clue/user/export',
        method: 'get',
        params: datas
    });
}

export function clueuserexportgrab(data) {
    let datas = data;
    if(data.start_date) {
        datas.start_date = dayjs(data.start_date).format('YYYY-MM-DD');
        datas.end_date = dayjs(data.end_date).format('YYYY-MM-DD');
    }
    return request({
        url: '/v1/clue/user/export-grab',
        method: 'get',
        params: datas
    });
}
// 获取线索抓取列表
export function clueusergrablist(data) {
    let datas = data;
    if(data.start_date) {
        datas.start_date = dayjs(data.start_date).format('YYYY-MM-DD');
        datas.end_date = dayjs(data.end_date).format('YYYY-MM-DD');
    }
    return request({
        url: '/v1/clue/user/grab-list',
        method: 'get',
        params: datas
    });
}
// 获取详情
export function clueuserinfo(data) {
    return request({
        url: '/v1/clue/user/info',
        method: 'get',
        params: data
    });
}
// 2022/5/18获取相应详情线索
export function clueuserinfoNew(data) {
    return request({
        url: '/v1/clue/user/info-new',
        method: 'get',
        params: data
    });
}
// 检测手机号是否存在
export function clueusercheckmobile(data) {
    return request({
        url: '/v1/clue/user/check-mobile',
        method: 'get',
        params: data
    });
}
// E聊
export function EweCharts(data) {
    return request({
        url: '/v1/clue/user/eliao-message',
        method: 'get',
        params: data
    });
}
// E聊/快商通/商务通
export function communicateMessage(data) {
    return request({
        url: '/v1/clue/user/communicate-message',
        method: 'get',
        params: data
    });
}
// 新建线索
export function clueusercreate(data) {
    return request({
        url: '/v1/clue/user/create',
        method: 'post',
        data
    });
}

// 编辑线索
export function clueuserupdate(data) {
    return request({
        url: '/v1/clue/user/update',
        method: 'post',
        data
    });
}

// 联系线索
export function clueusercontact(data) {
    return request({
        url: '/v1/clue/user/contact',
        method: 'post',
        data
    });
}
/**
 * 设置 - 来源渠道
 */

// 获取渠道列表
export function settingsourcechannelview(data) {
    return request({
        url: '/v1/setting/source-channel/view',
        method: 'get',
        params: data
    });
}
// 添加渠道
export function settingsourcechanneladd(data) {
    return request({
        url: '/v1/setting/source-channel/add',
        method: 'post',
        data
    });
}
// 编辑渠道
export function settingsourcechanneledit(data) {
    return request({
        url: '/v1/setting/source-channel/edit',
        method: 'post',
        data
    });
}
/**
 * 设置 - 市场来源渠道
 */

// 获取渠道列表
export function settingsourcechannelmarketview(data) {
    return request({
        url: '/v1/setting/source-channel/market-view',
        method: 'get',
        params: data
    });
}
// 添加渠道
export function settingsourcechannelmarketadd(data) {
    return request({
        url: '/v1/setting/source-channel/market-add',
        method: 'post',
        data
    });
}
// 编辑渠道
export function settingsourcechannelmarketedit(data) {
    return request({
        url: '/v1/setting/source-channel/market-edit',
        method: 'post',
        data
    });
}

// 客服微信列表
export function settingcustomerlist(data) {
    return request({
        url: '/v1/setting/customer/list',
        method: 'get',
        params: data
    });
}
// 更新客服微信备注
export function settingcustomerupdatecustomer(data) {
    return request({
        url: '/v1/setting/customer/update-customer',
        method: 'post',
        data
    });
}
// 检查手机号是否存在
export function checkPhone_Wx(data) {
    return request({
        url: '/v1/clue/user/repeat',
        method: 'get',
        params: data
    });
}
// 线索重复列表
export function repeatData(data) {
    return request({
        url: '/v1/clue/user/repeat-list',
        method: 'get',
        params: data
    });
}

// 来电重复列表
export function repeatCallData(data) {
    return request({
        url: '/v1/clue/call/repeat-list',
        method: 'get',
        params: data
    });
}

// 留言重复列表
export function grapRepeatData(data) {
    return request({
        url: '/v1/clue/user/grab-repeat-list',
        method: 'get',
        params: data
    });
}
// 项目列表
export function baseprojectindex(data) {
    return request({
        url: '/v1/base/project/index',
        method: 'get',
        params: data
    });
}
// 绑定白友项目
export function baseprojectupdateprojectconfig(data) {
    return request({
        url: '/v1/base/project/update-project-config',
        method: 'post',
        data
    });
}
// 项目新增
export function baseprojectcreate(data) {
    return request({
        url: '/v1/base/project/create',
        method: 'post',
        data
    });
}
// 项目编辑
export function baseprojectupdate(data) {
    return request({
        url: '/v1/base/project/update',
        method: 'post',
        data
    });
}

// 病种列表
export function patientdiseasesindex(data) {
    return request({
        url: '/v1/base/patient-diseases/index',
        method: 'get',
        params: data
    });
}
// 父类病种列表
export function patientdiseasesparentlist(data) {
    return request({
        url: '/v1/base/patient-diseases/parent-list',
        method: 'get',
        params: data
    });
}
// 排行榜病种筛选v1/work/leaderboard/rank-condition
export function rankCondition(data) {
    return request({
        url: '/v1/work/leaderboard/rank-condition',
        method: 'get',
        params: data
    });
}
// 新增病种
export function patientdiseasescreate(data) {
    return request({
        url: '/v1/base/patient-diseases/create',
        method: 'post',
        data
    });
}
// 编辑病种
export function patientdiseasesupdate(data) {
    return request({
        url: '/v1/base/patient-diseases/update',
        method: 'post',
        data
    });
}

// 部位列表
export function bodypartsindex(data) {
    return request({
        url: '/v1/base/body-parts/index',
        method: 'get',
        params: data
    });
}
// 父类部位列表
export function bodypartsparentlist(data) {
    return request({
        url: '/v1/base/body-parts/parent-list',
        method: 'get',
        params: data
    });
}
// 新增部位
export function bodypartscreate(data) {
    return request({
        url: '/v1/base/body-parts/create',
        method: 'post',
        data
    });
}
// 编辑部位
export function bodypartsupdate(data) {
    return request({
        url: '/v1/base/body-parts/update',
        method: 'post',
        data
    });
}
// 微信线索列表
export function wechatusercluelist(data) {
    let datas = data;
    if(data.start_time) {
        datas.start_time = dayjs(data.start_time).format('YYYY-MM-DD');
        datas.end_time = dayjs(data.end_time).format('YYYY-MM-DD');
    }
    return request({
        url: '/v1/clue/wechat-user/clue-list',
        method: 'get',
        params: datas
    });
}
// 患者详细
export function wechatuserclueinfo(data) {
    return request({
        url: '/v1/clue/wechat-user/clue-info',
        method: 'get',
        params: data
    });
}
// 微信聊天记录
export function wechatmessagelist(data) {
    return request({
        url: '/v1/patient/index/wechat-message-list',
        method: 'get',
        params: data
    });
}
// 回访-回访列表
export function callbackpatientlist(data) {
    let datas = data;
    if(data.start_time) {
        datas.start_time = dayjs(data.start_time).format('YYYY-MM-DD');
        datas.end_time = dayjs(data.end_time).format('YYYY-MM-DD');
    }
    if(data.created_stime) {
        datas.created_stime = dayjs(data.created_stime).format('YYYY-MM-DD');
        datas.created_etime = dayjs(data.created_etime).format('YYYY-MM-DD');
    }
    return request({
        url: '/v1/patient/callback/patient-list',
        method: 'get',
        params: datas
    });
}

// 回访筛选参数
export function callbackgetparamslist(data) {
    return request({
        url: '/v1/patient/callback/get-params-list',
        method: 'get',
        params: data
    });
}

// 回访参数返回
// export function callbackcommonlist(data) {
//   return request({
//     url: "/v1/patient/callback/common-list",
//     method: "get",
//     params: data,
//   });
// }
// // 回访记录
// export function callbackcallbacklist(data) {
//   let datas = data;
//   if (data.start_time) {
//     datas.start_time = dayjs(data.start_time).format("YYYY-MM-DD");
//     datas.end_time = dayjs(data.end_time).format("YYYY-MM-DD");
//   }
//   return request({
//     url: "/v1/patient/callback/callback-list",
//     method: "get",
//     params: datas,
//   });
// }
export function callbackcallbackcommonlist(data) {
    let datas = data;
    if(data.start_time) {
        datas.start_time = dayjs(data.start_time).format('YYYY-MM-DD');
        datas.end_time = dayjs(data.end_time).format('YYYY-MM-DD');
    }
    return request({
        url: '/v1/patient/callback/callback-common-list',
        method: 'get',
        params: datas
    });
}
// 编辑部位
export function callbackcreate(data) {
    let datas = data;
    if(data.appointment_time) {
        datas.appointment_time = dayjs(data.appointment_time).format(
            'YYYY-MM-DD'
        );
    }
    if(data.next_callback_time) {
        datas.next_callback_time = dayjs(data.next_callback_time).format(
            'YYYY-MM-DD'
        );
    }
    return request({
        url: '/v1/patient/callback/create',
        method: 'post',
        data: datas
    });
}
/* 任务计划 */
// 获取列表
export function plantaskslist(data) {
    let datas = data;
    if(data.month) {
        datas.month = dayjs(data.month).format('YYYY-MM');
    }
    return request({
        url: '/v1/plan/tasks/list',
        method: 'get',
        params: datas
    });
}
// 获取下拉信息
export function plantasksselectinfo(data) {
    return request({
        url: '/v1/plan/tasks/select-info',
        method: 'get',
        params: data
    });
}
// 获取分配信息
export function plantasksallotinfo(data) {
    let datas = data;
    if(data.month) {
        datas.month = dayjs(data.month).format('YYYY-MM');
    }
    return request({
        url: '/v1/plan/tasks/allot-info',
        method: 'get',
        params: datas
    });
}
// 分配任务
export function plantasksallot(data) {
    let datas = data;
    if(data.month) {
        datas.month = dayjs(data.month).format('YYYY-MM');
    }
    return request({
        url: '/v1/plan/tasks/allot',
        method: 'post',
        data: datas
    });
}
/* 导医 */
// 导医列表
export function patientindexguidelist(data) {
    let datas = data;
    if(data.appointment_stime) {
        datas.appointment_stime = dayjs(data.appointment_stime).format(
            'YYYY-MM-DD'
        );
        datas.appointment_etime = dayjs(data.appointment_etime).format(
            'YYYY-MM-DD'
        );
    }
    return request({
        url: '/v1/patient/index/guide-list',
        method: 'get',
        params: datas
    });
}
// 登记患者
export function patientindexguidecreate(data) {
    let datas = data;
    if(data.birthday) {
        datas.birthday = dayjs(datas.birthday).format(
            'YYYY-MM-DD'
        );
    }
    return request({
        url: '/v1/patient/index/guide-create',
        method: 'post',
        data: datas
    });
}
// 到诊
export function patientindexarrive(data) {
    let datas = data;
    if(data.revisiting_time) {
        datas.revisiting_time = dayjs(datas.revisiting_time).format(
            'YYYY-MM-DD'
        );
    }
    return request({
        url: '/v1/patient/index/arrive',
        method: 'post',
        data: datas
    });
}
// 撤诊
export function patientindexcancelarrive(data) {
    return request({
        url: '/v1/patient/index/cancel-arrive',
        method: 'post',
        data
    });
}
// 导医登记删除
export function patientindexguidedel(data) {
    return request({
        url: '/v1/patient/index/guide-del',
        method: 'post',
        data
    });
}
// 导医列表【已到】
export function patientindexguidearrivelist(data) {
    let datas = data;
    if(data.revisiting_stime) {
        datas.revisiting_stime = dayjs(data.revisiting_stime).format(
            'YYYY-MM-DD'
        );
        datas.revisiting_etime = dayjs(data.revisiting_etime).format(
            'YYYY-MM-DD'
        );
    }
    return request({
        url: '/v1/patient/index/guide-arrive-list',
        method: 'get',
        params: datas
    });
}
/* 患者 */
// 新增患者列表
export function patientindexaddlist(data) {
    let datas = JSON.parse(JSON.stringify(data));
    if(data.created_stime) {
        datas.created_stime = dayjs(data.created_stime).format('YYYY-MM-DD');
        datas.created_etime = dayjs(data.created_etime).format('YYYY-MM-DD');
    }
    return request({
        url: '/v1/patient/index/add-list',
        method: 'get',
        params: datas
    });
}
// 预到患者列表
export function patientindexorderarrivelist(data) {
    let datas = JSON.parse(JSON.stringify(data));
    if(data.appointment_stime) {
        datas.appointment_stime = dayjs(data.appointment_stime).format(
            'YYYY-MM-DD'
        );
        datas.appointment_etime = dayjs(data.appointment_etime).format(
            'YYYY-MM-DD'
        );
    }
    return request({
        url: '/v1/patient/index/order-arrive-list',
        method: 'get',
        params: datas
    });
}
// 已到患者列表
export function patientindexarrivelist(data) {
    let datas = JSON.parse(JSON.stringify(data));
    if(data.revisiting_stime) {
        datas.revisiting_stime = dayjs(data.revisiting_stime).format(
            'YYYY-MM-DD'
        );
        datas.revisiting_etime = dayjs(data.revisiting_etime).format(
            'YYYY-MM-DD'
        );
    }
    return request({
        url: '/v1/patient/index/arrive-list',
        method: 'get',
        params: datas
    });
}
// 流失患者列表
export function losslist(data) {
    let datas = JSON.parse(JSON.stringify(data));
    if(data.revisiting_stime) {
        datas.revisiting_stime = dayjs(data.revisiting_stime).format(
            'YYYY-MM-DD'
        );
        datas.revisiting_etime = dayjs(data.revisiting_etime).format(
            'YYYY-MM-DD'
        );
    }
    return request({
        url: '/v1/patient/loss/loss-list',
        method: 'get',
        params: datas
    });
}
// 过期未到患者列表
export function patientindexunarrivelist(data) {
    return request({
        url: '/v1/patient/index/un-arrive-list',
        method: 'get',
        params: data
    });
}
// 预约患者列表
export function patientindexoperatearrivelist(data) {
    let datas = JSON.parse(JSON.stringify(data));
    if(data.operate_stime) {
        datas.operate_stime = dayjs(data.operate_stime).format('YYYY-MM-DD');
        datas.operate_etime = dayjs(data.operate_etime).format('YYYY-MM-DD');
    }
    return request({
        url: '/v1/patient/index/operate-arrive-list',
        method: 'get',
        params: datas
    });
}
// 改约患者列表
export function patientindexchangearrivelist(data) {
    return request({
        url: '/v1/patient/index/change-arrive-list',
        method: 'get',
        params: data
    });
}
// 患者详情
export function patientindexinfo(data) {
    return request({
        url: '/v1/patient/index/info',
        method: 'get',
        params: data
    });
}
// 患者编辑详情
export function patientindexeditinfo(data) {
    return request({
        url: '/v1/patient/index/edit-info',
        method: 'get',
        params: data
    });
}
// 患者编辑详情
export function patientindexsearchchildchannel(data) {
    return request({
        url: '/v1/patient/index/search-child-channel',
        method: 'get',
        params: data
    });
}
// 删除患者
export function patientindexdelete(data) {
    return request({
        url: '/v1/patient/index/delete',
        method: 'post',
        data
    });
}
// 患者重复列表
export function patientindexrepeatlist(data) {
    return request({
        url: '/v1/patient/index/repeat-list',
        method: 'get',
        params: data
    });
}
// 搜索二级病种列表
export function patientindexsearchchilddiseases(data) {
    return request({
        url: '/v1/patient/index/search-child-diseases',
        method: 'get',
        params: data
    });
}
// 回访列表
export function patientindexcallbacklist(data) {
    let datas = data;
    if(data.start_time) {
        datas.start_time = dayjs(data.start_time).format('YYYY-MM-DD');
        datas.end_time = dayjs(data.end_time).format('YYYY-MM-DD');
    }
    return request({
        url: '/v1/patient/index/callback-list',
        method: 'get',
        params: datas
    });
}
// 营销信息
export function patientindexmarketinginfo(data) {
    return request({
        url: '/v1/patient/index/marketing-info',
        method: 'get',
        params: data
    });
}
// 营销信息
export function patientindex(data) {
    return request({
        url: '/v1/patient/index/marketing-info',
        method: 'get',
        params: data
    });
}
// 微信信息
export function patientindexwechatinfo(data) {
    return request({
        url: '/v1/patient/index/wechat-info',
        method: 'get',
        params: data
    });
}
// 患者操作日志
export function patientindexpatientoperatelist(data) {
    return request({
        url: '/v1/patient/index/patient-operate-list',
        method: 'get',
        params: data
    });
}
// 新增患者
export function patientindexcreate(data) {
    let datas = data;
    if(data.birthday) {
        datas.birthday = dayjs(data.birthday).format('YYYY-MM-DD');
    }
    if(data.appointment_time) {
        datas.appointment_time = dayjs(data.appointment_time).format(
            'YYYY-MM-DD'
        );
    }
    if(data.next_callback_time) {
        datas.next_callback_time = dayjs(data.next_callback_time).format(
            'YYYY-MM-DD'
        );
    }
    return request({
        url: '/v1/patient/index/create',
        method: 'post',
        data: datas
    });
}
// 编辑患者
export function patientindexupdate(data) {
    let datas = data;
    if(data.birthday) {
        datas.birthday = dayjs(data.birthday).format('YYYY-MM-DD');
    }
    if(data.appointment_time) {
        datas.appointment_time = dayjs(data.appointment_time).format(
            'YYYY-MM-DD'
        );
    }
    if(data.next_callback_time) {
        datas.next_callback_time = dayjs(data.next_callback_time).format(
            'YYYY-MM-DD'
        );
    }
    return request({
        url: '/v1/patient/index/update',
        method: 'post',
        data: datas
    });
}
// 关注or取消关注患者
export function patientindexsub(data) {
    return request({
        url: '/v1/patient/index/sub',
        method: 'post',
        data
    });
}
// 编辑患者备注
export function patientindexeditremark(data) {
    return request({
        url: '/v1/patient/index/edit-remark',
        method: 'post',
        data
    });
}
// 编辑患者标签
export function patientindexedittags(data) {
    return request({
        url: '/v1/patient/index/edit-tags',
        method: 'get',
        params: data
    });
}

// 回访-回访列表
export function patientindexaddlistss(data) {
    return request({
        url: '/v1/patient/callback/patient-list',
        method: 'get',
        params: data
    });
}

// 患者操作日志
export function patientindexsearchmobile(data) {
    return request({
        url: '/v1/patient/index/search-mobile',
        method: 'get',
        params: data
    });
}

// 患者操作日志
export function clueusersearchmobile(data) {
    return request({
        url: '/v1/clue/user/search-mobile',
        method: 'get',
        params: data
    });
}
// 患者总数
export function patientindextabtotal(data) {
    return request({
        url: '/v1/patient/index/tab-total',
        method: 'get',
        params: data
    });
}
// 解绑线索微信
export function patientindexunbindwechat(data) {
    return request({
        url: '/v1/patient/index/unbind-wechat',
        method: 'post',
        data
    });
}
// 物理删除渠道
export function deleteChannel(data) {
    return request({
        url: '/v1/setting/source-channel/channel-delete',
        method: 'post',
        data
    });
}
// 物理删除部位
export function deleteBW(data) {
    return request({
        url: '/v1/base/body-parts/body-parts-del',
        method: 'post',
        data
    });
}
// 物理删除病种
export function deleteBZ(data) {
    return request({
        url: '/v1/base/patient-diseases/disease-del',
        method: 'post',
        data
    });
}

// 患者病历信息
export function patientindexmedicalinfo(data) {
    return request({
        url: '/v1/patient/index/medical-info',
        method: 'get',
        params: data
    });
}
// 删除患者病历图片
export function patientindexdeletemedicalimg(data) {
    return request({
        url: '/v1/patient/index/delete-medical-img',
        method: 'post',
        data
    });
}
// 编辑病历
export function patientindexupdatemedical(data) {
    return request({
        url: '/v1/patient/index/update-medical',
        method: 'post',
        data
    });
}

// 客服录入重复患者
export function clueuserrepeatuser(data) {
    return request({
        url: '/v1/clue/user/repeat-user',
        method: 'get',
        params: data
    });
}

// 查询线索/患者 重复数据
export function clueusersearchrepeat(data) {
    return request({
        url: '/v1/clue/user/search-repeat',
        method: 'get',
        params: data
    });
}

// 查询线索/患者 重复数据
export function patientindexrepeatconfirmlist(data) {
    return request({
        url: '/v1/patient/index/repeat-confirm-list',
        method: 'get',
        params: data
    });
}

// 病种专题患者列表
export function patientindexdiseasesuserlist(data) {
    return request({
        url: '/v1/patient/index/diseases-user-list',
        method: 'get',
        params: data
    });
}

// 获取归属人微信标签列表
export function customerwechattagslist(data) {
    return request({
        url: '/v1/customer/wechat/tags-list',
        method: 'get',
        params: data
    });
}

// 获取归属人微信标签列表
export function statisticsnoreplyreportreport(data) {
    let datas = data;
    if(data.date) {
        datas.date = dayjs(data.date).format('YYYY-MM-DD');
    }
    return request({
        url: '/v1/statistics/no-reply-report/report',
        method: 'get',
        params: datas
    });
}

// 获取归属人微信标签详情
export function customerwechattagsinfo(data) {
    return request({
        url: '/v1/customer/wechat/tags-info',
        method: 'get',
        params: data
    });
}

// 获取微信标签
export function patientindexpatienttags(data) {
    return request({
        url: '/v1/patient/index/patient-tags',
        method: 'get',
        params: data
    });
}

// 筛选条件
export function patientindexseacondition(data) {
    return request({
        url: '/v1/patient/index/sea-condition',
        method: 'get',
        params: data
    });
}
// 导出电话
export function gePatientMobile(data) {
    return request({
        url: '/v1/patient/index/get-patient-mobile',
        method: 'get',
        params: data
    });
}
// 菜单点击
export function rbacmenumenuclick(data) {
    return request({
        url: '/v1/rbac/menu/menu-click',
        method: 'post',
        data
    });
}

// 菜单报表
export function rbacmenumenulog(data) {
    return request({
        url: '/v1/rbac/menu/menu-log',
        method: 'get',
        params: data
    });
}
// 新增编辑患者与当前项目白友患者库匹配，号码已存在时提示该患者为老患者到诊
export function repeatbaiyou(data) {
    return request({
        url: '/v1/clue/user/repeat-bai-you',
        method: 'post',
        data
    });
}
// 同步录音刷新
export function createvoiceQueue(data) {
    return request({
        url: 'v1/site/create-voice-queue',
        method: 'get',
        params: data
    });
}
// 营销中心设置
// 营销中心设置——新增、编辑营销中心
export function netsettingaddedit(data) {
    return request({
        url: '/v1/net/setting/add-edit',
        method: 'post',
        data
    });
}
// 网络月计划任务——绑定渠道
export function netsettingbindchannel(data) {
    return request({
        url: '/v1/net/setting/bind-channel',
        method: 'post',
        data
    });
}
// 网络月计划任务——绑定人员
export function netsettingbindmember(data) {
    return request({
        url: '/v1/net/setting/bind-member',
        method: 'post',
        data
    });
}
// 网络月计划任务——项目绑定
export function netsettingbindproject(data) {
    return request({
        url: '/v1/net/setting/bind-project',
        method: 'post',
        data
    });
}
// 网络月计划任务——渠道列表
export function netsettingchannellist(data) {
    return request({
        url: '/v1/net/setting/channel-list',
        method: 'get',
        params: data
    });
}
// 月计划任务——营销中心列表
export function netsettingindex(data) {
    return request({
        url: '/v1/net/setting/index',
        method: 'get',
        params: data
    });
}
// 月计划任务——营销中心项目下拉
export function netsettingcondition(data) {
    return request({
        url: 'v1/net/setting/condition-list',
        method: 'get',
        params: data
    });
}
// 月计划任务——营销中心项目删除
export function netsettingDel(data) {
    return request({
        url: 'v1/net/setting/delete-net-config',
        method: 'post',
        data
    });
}
// 网络月计划任务——人员列表
export function netsettingmemberlist(data) {
    return request({
        url: '/v1/net/setting/member-list',
        method: 'get',
        params: data
    });
}
// 网络月计划任务——项目列表
export function netsettingprojectlist(data) {
    return request({
        url: '/v1/net/setting/project-list',
        method: 'get',
        params: data
    });
}
// 项目提示
export function checkDisease(data) {
    return request({
        url: '/v1/base/project/check-disease',
        method: 'post',
        data
    });
}
// 编辑患者【微信PC(嵌入灯塔页面)】
export function patientupdatewxPc(data) {
    return request({
        url: '/v1/patient/index/update-wx-pc',
        method: 'post',
        data
    });
}
// 业务设置词性配置
// 词性配置
export function cixingsmallList(data) {
    return request({
        url: '/v1/search/setting/cixing-small-list',
        method: 'get',
        params: data
    });
}
// 词性新增编辑
export function updatecixingSmall(data) {
    return request({
        url: '/v1/search/setting/update-cixing-small',
        method: 'post',
        data
    });
}
// 词性删除
export function deletecixingSmall(data) {
    return request({
        url: '/v1/search/setting/delete-cixing-small',
        method: 'post',
        data
    });
}

// 患者病例信息图片
export function imageList(data) {
    return request({
        url: 'v1/patient/medical/image-list',
        method: 'get',
        params: data
    });
}
// 患者病例信息图片上传
export function imageUpload(data) {
    return request({
        url: 'v1/patient/index/upload-medical-img',
        method: 'post',
        data
    });
}
// 患者病例信息图片删除
export function imageDel(data) {
    return request({
        url: 'v1/patient/index/delete-medical-img',
        method: 'post',
        data
    });
}
//患者病种核验
export function patientCheckDiseases(data) {
    return request({
        url: '/v1/patient/diseases-check/patient-check-diseases',
        method: 'post',
        data
    });
}
//微信图片添加到病历图
export function addMedicalImg(data) {
    return request({
        url: 'v1/patient/index/add-medical-img',
        method: 'post',
        data
    });
}

//患者添加批注
export function addComment(data) {
    return request({
        url: '/v1/patient/callback/create-comment',
        method: 'post',
        data
    });
}
//患者编辑批注
export function updateComment(data) {
    return request({
        url: '/v1/patient/callback/update-comment',
        method: 'post',
        data
    });
}
//患者删除批注
export function delComment(data) {
    return request({
        url: '/v1/patient/callback/delete-comment',
        method: 'post',
        data
    });
}

// 病种核验下拉
export function diseaseList(data) {
    return request({
        url: 'v1/patient/index/disease-list',
        method: 'get',
        params: data
    });
}

// 营销表配置列表
export function netConfigList(data) {
    return request({
        url: '/v1/net/net-config/list',
        method: 'get',
        params: data
    });
}
// 营销项目详情
export function netConfigProjectInfo(data) {
    return request({
        url: '/v1/net/net-config/edit-project-info',
        method: 'get',
        params: data
    });
}
//编辑项目配置
export function netConfigEditProject(data) {
    return request({
        url: '/v1/net/net-config/edit-project',
        method: 'post',
        data
    });
}
// 渠道编辑详情
export function netConfigEditInfo(data) {
    return request({
        url: '/v1/net/net-config/edit-info',
        method: 'get',
        params: data
    });
}
//编辑渠道配置
export function netConfigEditChannel(data) {
    return request({
        url: '/v1/net/net-config/edit-channel',
        method: 'post',
        data
    });
}